package ar.com.vates.threads3;

public class Ejercicio3 {
	public static void main(String[] args) {

		Cuenta cuenta = new Cuenta();

		Thread j = new Thread(new Cajero(cuenta, "Juan", 1000));
		Thread m = new Thread(new Cajero(cuenta, "Maria", 2000));

		j.start();
		m.start();

		try {
			j.join();
			m.join();
		} catch (Exception e) {

		}
		System.out.println("\nSALDO FINAL: " + cuenta.getSaldo());
	}
}